package com.xq.string;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2017/07/09.
 *         当两个字符串字面值连接时（相加），得到的新字符串依然是字符串字面值，保存在常量池中
 */

public class StringNewTest1 {
    public static void main(String[] args){
        String a = "a1";
        String b = "a" + 1;
        System.out.println(a == b);
    }
}
